how to protect your investments from inflation